package Gra;

import static org.junit.Assert.*;

import org.junit.Test;

public class TaliaTest implements Cloneable {

	@Test
	public void testTworzTalie(){
		Talia talia = new Talia();
		talia.tworzTalie();
		assertNotNull(talia.karty);
		assertEquals(52, talia.karty.size());
	}
	
	@Test
	public void testTasujTalie(){
		Talia talia = new Talia();
		Talia potasowanaTalia = new Talia();
		talia.tworzTalie();
		talia.tasujTalie();
		potasowanaTalia = talia.clone();
		System.out.println();
		for(int i=0;i<talia.karty.size();i++){
			assertNotSame(talia.karty.get(i), potasowanaTalia.karty.get(i));
		}
		
	}

}
